<!DOCTYPE html>
<!--
# @Time : 2021/6/9 14:20 
# @Author : 常雷
# @File : kaccount_info.thml
# @Software: PyCharm
-->
{# 模板的继承 #}
{% extends 'home.html' %}
{# 修改区域 #}
{% block active %}
                <a href="/state/home/" class="list-group-item">首页</a>
                <a href="/state/room_info/" class="list-group-item">房间信息查询</a>
                <a href="/state/guid_info/" class="list-group-item">引导信息查询</a>
                <a href="/state/kaccount_info/" class="list-group-item active">K歌账号查询</a>
                <a href="/state/help_info/" class="list-group-item">帮助</a>
{% endblock %}

{% block content %}
    <h1 class="text-center">账号信息展示</h1>
<div class="container">
    <div class="row">
        <div class="col-md-12 col-md-offset-0">
            <table class="table table-striped table-hover">
                <thead>
                    <tr>
                        <th>账号名字</th>
                        <th>账号密码</th>
                        <th>账号状态</th>
                    </tr>
                </thead>
                <tbody>
                    {% for kaccount_obj in kaccount_querys %}
                        <tr>
                            <td>{{ kaccount_obj.account_username }}</td>
                            <td>{{ kaccount_obj.account_pwd }}</td>
                            <td>{{ kaccount_obj.account_state }}</td>
                        </tr>
                    {% endfor %}

                </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}